<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script src="../../common/js/jquery-3.4.1.min.js"></script>
	<script type="text/javascript">
		$(function(){
			
	$("a:contains('link')").attr({href:'index.html',title:'test'});	
	        //包含link的标签的href属性为index.html  title属性为test
	     
	        //获取p标签的class
	       
	        //将p标签的class属性改成class+another
	       
	        //点击link交替两种样式
	       
	})
	</script>
</head>

<body>
<h3>例子</h3>
	<a href="#">link1</a>
	<a href="#">link</a>	
	<a href="#">lnk</a>
</body>
</html>
